﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Base;
using MvcEngine.Mvc.UI;
using MvcEngine.Core.Validation;
using System.Web.UI.WebControls;

namespace MvcEngine.Blog.Models
{
    public class RecentPostsPageContent : Entity
    {
        public RecentPostsPageContent()
        {

        }

        public RecentPostsPageContent(Entity entity)
            : base(entity)
        {

        }

        [RequiredFieldValidator("$RequiredValidator")]
        public int PostCount
        {
            get { return GetValue<int>("PostCount", 0); }
            set { Fields.SetValue("PostCount", value); }
        }

        public override string Xml { get; set; }
    }
}
